from flask import Blueprint, render_template
from flask_login import login_required, current_user

main = Blueprint('main', __name__)

@main.route('/home')
@login_required
def home():
    return f'欢迎, {current_user.username}!'
